package com.hy.admin.dao;

import com.hy.admin.entity.YangCoinOrderEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;

@Repository
public interface YangCoinOrderDao {
    int deleteByPrimaryKey(Long id);

    int insert(YangCoinOrderEntity record);

    int insertSelective(YangCoinOrderEntity record);

    YangCoinOrderEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(YangCoinOrderEntity record);

    int updateByPrimaryKey(YangCoinOrderEntity record);

    /**
     * 修改支付状态
     * @param id
     * @param payState
     * @return
     */
    int changePayState(@Param("id") Long id, @Param("payState") int payState);

    /**
     * 根据uuid查询订单id
     * @param uuid
     * @return
     */
    Long selectByUuid(String uuid);
}